home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / Printing / Scalable PostScript PICT / PrintComments.h next >
Encoding:
C/C++ Source or Header  |  1994-02-24  |  4.8 KB  |  99 lines  |  [TEXT/KAHL]

  1. /*        Type                Kind    Data Size    Data Type        Description                        */
  2. #define    TextBegin            150    /*    6            TTxtPicRec        Begin text layout modifications        */
  3. #define    TextEnd                151    /*    0            NIL                End text layout modifications        */
  4. #define    StringBegin            152    /*    0            NIL                Begin segmented string                */
  5. #define    StringEnd            153    /*    0            NIL                End segmented string                */
  6. #define    TextCenter            154    /*    8            TTxtCenter        Specify center of rotation for        */
  7.                                 /*                                the TextBegin comment (above)        */
  8.                                 
  9. #define    LineLayoutOff        155    /*    0            NIL                Disable driver's line layout routine*/    
  10. #define    LineLayoutOn        156    /*    0            NIL                Enable driver's line layout routine    */    
  11. #define    LineLayoutConfig    157    /*    16            LLConfig        Customize driver's line layout routine*/
  12.  
  13. #define    PolyBegin            160    /*    0            NIL                Begin PostScript polygon            */    
  14. #define    PolyEnd                161    /*    0            NIL                End PostScript polygon                */    
  15. #define    PolyIgnore            163    /*    0            NIL                Ignore StdLine calls(for smoothed polys)*/    
  16. #define    PolySmooth            164    /*    1            PolyVerb        Smooth a polygon using B-Splines    */    
  17. #define    picPlyClo            165    /*    0            NIL                Close an open polygon(connect start and    */
  18.                                 /*                                end points                            */
  19.                                 
  20. #define    DashedLine            180    /*    -            TDashedLine        Begin PostScript line dashing        */
  21. #define    DashedStop            181    /*    0            NIL                End PostScript line dashing            */
  22. #define    SetLineWidth        182    /*    4            Point            Set hi resolution line width         */    
  23.  
  24. #define    PostScriptBegin        190    /*    0            NIL                Signal driver to ingnore Quickdraw calls*/
  25. #define    PostScriptEnd        191    /*    0            NIL                Re-enable Quickdraw                    */
  26. #define    PostScriptHandle    192    /*    -            Handle            Transfer a block of PostScript        */    
  27. #define    PostScriptFile        193    /*    -            StringHandle    Transfer a file of PostScript        */    
  28. #define    TextIsPostScript    194    /*    0            NIL                Use DrawString to send PostScript    */
  29. #define    ResourcePS            195    /*    8            Type/ID/Index    Transfer a resource of PostScript    */    
  30. #define    PSBeginNoSave        196    /*    0            NIL                Like #190 but doesn't save PS state */
  31.  
  32.  
  33. #define    RotateBegin            200    /*    4            TRotation        Begin hi-resolution graphics rotation*/    
  34. #define    RotateEnd            201    /*    0            NIL                End rotation                        */
  35. #define    RotateCenter        202    /*    8            Center            Specify center of rotation            */
  36.  
  37. #define    FormsPrinting        210    /*    0            NIL                Specify graphics to remain resident    */
  38.                                 /*                                for all pages in the print job        */
  39. #define    EndFormsPrinting    211    /*    0            NIL                Evict the residents                    */
  40.  
  41.  
  42. typedef struct TTxtPicRec {
  43.     unsigned char    tJus;        /* Justification for line layout of text.                                */
  44.     unsigned char    tFlip;        /* Horizontal or vertical flipping                                        */
  45.     short            tRot;        /* Text rotation (0..360) (for fractional rot., see extTTxtPicRec below)*/
  46.     unsigned char    tLine;        /* Single, 1 1/2, or double line spacing                                */
  47.     unsigned char    tCmnt;        /* Reserved                                                                */
  48. } TTxtPicRec, *TTxtPicPtr, **TTxtPicHdl;
  49.  
  50. typedef struct ExtTTxtPicRec {
  51.     unsigned char        tJus;        /* Justification for line layout of text.                            */
  52.     unsigned char        tFlip;        /* Horizontal or vertical flipping                                    */
  53.     short                tRot;        /* (Ignored)                                                        */
  54.     unsigned char        tLine;        /* Single, 1 1/2, or double line spacing                            */
  55.     unsigned char        tCmnt;        /* Reserved                                                            */
  56.     short                tRotFixed;    /* Text rotation (0..360)                                            */
  57. } ExtTTxtPicRec, *ExtTTxtPicPtr, **ExtTTxtPicHdl;
  58.  
  59. typedef struct TTxtCenter {
  60.     short        y, x;        /* Offset from current pen location to center of rotation            */
  61.     short    xFrac, yFrac;
  62. } TTxtCenter, *TTxtCenterPtr, **TTxtCenterHdl;
  63.  
  64. typedef struct TPolyVerb {
  65.     Boolean f7, f6, f5, f4, /* Reserved                                                            */
  66.         fPolyRes,             /* TRUE = Polygon was specified with doubled points                    */
  67.         fPolyClose,         /* TRUE = Polygon should be closed                                    */
  68.         fPolyFill,             /* TRUE = Polygon should be filled                                    */
  69.         fPolyFrame;            /* TRUE = Polygon should be framed                                    */
  70. } TPolyVerb, *TPolyVerbPtr, **TPolyVerbHdl;
  71.  
  72. typedef struct TDashedLine {
  73.     SignedByte    offset;        /* Offset as specified by PostScript ???                            */
  74.     SignedByte    centered;    /* (Ignored) ???                                                    */
  75.     SignedByte    dashed[];    /* Dynamic array of dash intervals                                    */
  76. } TDashedLine, *TDashedLinePtr, **TDashedLineHdl;
  77.  
  78. struct PSRsrc {
  79.     ResType        PSType;        /* Resource type.  (Actual resource format is 'STR ' or 'STR#')        */
  80.     short        PSID;        /* Resource ID.                                                        */
  81.     short        PSIndex;    /* If PSType = 'STR ' then 0 otherwise index into 'STR#'.            */
  82. };
  83. typedef struct PSRsrc *PSRsrcPtr, **PSRsrcHdl;
  84.  
  85. typedef struct Rotation 
  86. {
  87.     short    flip;            /* Horizontal/vertical flipping (0=none,1=horizontal,2=vertical)    */
  88.     short    angle;            /* Clockwise rotation in degrees (0..360)                            */
  89. } Rotation, *RotationPtr, **RotationHdl;
  90.  
  91. typedef struct ExtRotation 
  92. {
  93.     short        flip;        /* Horizontal/vertical flipping (0=none,1=horizontal,2=vertical)    */
  94.     short        angle;        /* (Ignored)                                                        */
  95.     Fixed        angleFixed;    /* Clockwise rotation in degrees (0..360)                            */
  96. } ExtRotation, *ExtRotationPtr, **ExtRotationHdl;
  97.  
  98.  
  99.